package cn.com.surker.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 材料表
 * </p>
 *
 * @author admin
 * @since 2022-10-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OaMaterial implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 规格
     */
    private String norms;

    /**
     * 规格全称
     */
    private String fullName;

    /**
     * 编号
     */
    private String code;

    /**
     * 类型(0:水泥,1:细集料,2:粗集料,3:掺合料,4:外加剂,5:水,6:其它)
     */
    private Integer type;

    /**
     * 材料品类 MaterialBreedTypeEnum
     */
    private Integer breedType;

    /**
     * 厂家
     */
    private String brand;

    /**
     * 管理人ID
     */
    private Long uid;

    /**
     * 管理人
     */
    private String manager;

    /**
     * 状态(0:启用1:禁用)
     */
    private Integer status;

    /**
     * 排序号
     */
    private Integer sort;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    public OaMaterial(){}

    public OaMaterial(String name, String norms, String fullName, String code, Integer type, Long uid, String manager,
                      Integer status, Integer sort, String remark, Date createTime) {
        this.name = name;
        this.norms = norms;
        this.fullName = fullName;
        this.code = code;
        this.type = type;
        this.uid = uid;
        this.manager = manager;
        this.status = status;
        this.sort = sort;
        this.remark = remark;
        this.createTime = createTime;
    }
}
